import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    count: 100,
    userInfo: {
      name: 'tom',
       skills: ['抖音', 'B站', '美团'],
      address: '武汉黑马',
      logo: 'https://vuejs.org/images/logo.svg'
      //  https://www.runoob.com/wp-content/uploads/2016/02/react.png
   }
  },
  mutations:{
    modName(state,newName){
      state.userInfo.name = newName
    }
  }
})
export default store